-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jung/staking #69
base: master
Are you sure you want to change the base?
Jung/staking #69
Conversation
_verifyProof(_jobId, _proof); | ||
|
||
uint256 feePaid = jobs[_jobId].feePaid; | ||
uint256 pendingInflationReward = _updateInflationReward(jobs[_jobId].operator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function should probably be part of rewardManager or stakingManager.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[discuss]
if (operatorJobCompletionEpochs[_operator].length == 0) return 0; | ||
|
||
// list of epochs in which operator has completed jobs | ||
uint256[] storage completedEpochs = operatorJobCompletionEpochs[_operator]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The array size for an operator will always be 1. Because in the next epoch, if there was some job completed then the distribution happens right? Is there a way apart from job completion when this is updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why it always becomes 0.
Current epoch number gets pushed into the array if the last element of the array isn't current epoch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
No description provided.